package com.stanley.alogrithm;

public class ListNode {
    public ListNode(int value) {
        this.value = value;
    }
    public int value;
    public ListNode next;

    @Override
    public String toString() {
        String nextStr = next != null ? "->" + next : "";
        return value + nextStr;
    }
}
